Not Operator

Used to perform logical negation of a Boolean expression.

Notes


Syntax

result=Not expression

Part

Description

result

A Boolean value.

expression

Any valid Boolean expression.



Not returns the opposite of the Boolean value expression evaluates to. If expression evaluates to True, Not returns False. If expression evaluates to False, Not returns True.


See Also

And, Or operators; Operator_Not function.